package com.yuandian.middle.platform.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 说明：中台二期-指标类型
 * 			1-Counter，2-Gauge，3-Summary，4-Histgram
 * @Author LSH
 * @Date 2023/5/25 14:06
 */
@Getter
@AllArgsConstructor
public enum IndexTypeEnum {
	COUNTER("1", "COUNTER"),
	GAUGE("2", "GAUGE"),
	SUMMARY("3", "SUMMARY"),
	HISTGRAM("4", "HISTGRAM");

    private String code;
    private String msg;


    public static String getItemValue(String code) {
        for (IndexTypeEnum m : IndexTypeEnum.values()) {
            if ((m.code).equals(code)) {
                return m.msg;
            }
        }
        return "";
    }
}
